<!-- 补缴提醒 -->
<template>

    <el-main>
        <h2>补缴提醒</h2>
            <div class="Form">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
                <el-form-item label="所属省份">
                    <el-select v-model="formInline.region" placeholder="请选择">
                    <el-option label="上海市" value="shanghai"></el-option>
                    <el-option label="北京市" value="beijing"></el-option>
                    <el-option label="天津市" value="tianjing"></el-option>
                    <el-option label="重庆市" value="chongqing"></el-option>
                    <el-option label="内蒙古" value="neimenggu"></el-option>
                    <el-option label="广西" value="guangxi"></el-option>
                    <el-option label="西藏" value="xizang"></el-option>
                    <el-option label="宁夏" value="ningxia"></el-option>
                    <el-option label="新疆" value="xinjiang"></el-option>
                    <el-option label="香港" value="xianggang"></el-option>
                    <el-option label="澳门" value="aomen"></el-option>
                    <el-option label="河北" value="hebei"></el-option>
                    <el-option label="山西" value="shanxi_1"></el-option>
                    <el-option label="辽宁" value="liaoning"></el-option>
                    <el-option label="吉林" value="jilin"></el-option>
                    <el-option label="黑龙江" value="heilongjiang"></el-option>
                    <el-option label="江苏" value="jiangsu"></el-option>
                    <el-option label="浙江" value="zhejiang"></el-option>
                    <el-option label="安徽" value="anhui"></el-option>
                    <el-option label="福建" value="fujian"></el-option>
                    <el-option label="江西" value="jiangxi"></el-option>
                    <el-option label="山东" value="shandong"></el-option>
                    <el-option label="河南" value="henan"></el-option>
                    <el-option label="湖北" value="hubei"></el-option>
                    <el-option label="湖南" value="hunan"></el-option>
                    <el-option label="广东" value="guangdong"></el-option>
                    <el-option label="海南" value="hainan"></el-option>
                    <el-option label="四川" value="sichuan"></el-option>
                    <el-option label="贵州" value="guizhou"></el-option>
                    <el-option label="云南" value="yunnan"></el-option>
                    <el-option label="陕西" value="shanxi_2"></el-option>
                    <el-option label="甘肃" value="gansu"></el-option>
                    <el-option label="青海" value="qinghai"></el-option>
                    <el-option label="台湾" value="taiwan"></el-option>
                    </el-select>

                </el-form-item>

                <el-form-item label="车主姓名:">
                    <el-input v-model= "formInline.user" placeholder="车主"></el-input>
                </el-form-item>

                <el-form-item label="车牌号:">
                    <el-input v-model= "formInline.id" placeholder="车牌号"></el-input>
                </el-form-item>

                <el-form-item>
                    <el-button type="primary" @click= "onSubmit">查询</el-button>
                </el-form-item>
            </el-form>
        </div>
        <div class="Table">
            <el-table
                :data= "tableData"
                stripe
                style="width: 100%">
                <el-table-column
                fixed
                prop="Date"
                label="收费日期"
                width="150">
                </el-table-column>
                <el-table-column
                prop="CarId"
                label="所属车牌号"
                width="150">
                </el-table-column>
                <el-table-column
                prop="Color"
                label="车辆颜色"
                width="150">
                </el-table-column>
                <el-table-column
                prop="Kind"
                label="车种"
                width="150">
                </el-table-column>
                <el-table-column
                prop="Type"
                label="车型"
                width="150">
                </el-table-column>
                <el-table-column
                prop="OBUId"
                label="关联OBU设备编号"
                width="200">
                </el-table-column>
                <el-table-column
                prop="Fee"
                label="收费金额"
                width="150">
                </el-table-column>
                <el-table-column
                    fixed="right"
                    label="操作"
                    width="100">
                    <template slot-scope="scope">
                        <el-button @click="handleClick(scope.row)" type="text" size="small">查看</el-button>
                        <el-button type="text" size="small">编辑</el-button>
                    </template>
                </el-table-column>
            </el-table>
        </div>
    </el-main>

</template>

<script>
  export default {
    data() {
        return {
            tableData: [{
          Date: '2020-05-02',
          CarId: '京A.69999',
          Color: '黑色',
          Kind: '乘用车',
          Type: '小型乘用车',
          OBUId: '123456',
          Fee: '50￥'
        },{
          Date: '2020-05-02',
          CarId: '京A.69699',
          Color: '白色',
          Kind: '乘用车',
          Type: '小型乘用车',
          OBUId: '122356',
          Fee: '100￥'
        }
        ],
            formInline: {
            user: '',
            id: ''
        }
        }
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },
      onSubmit() {
        console.log('submit!');
      },
    }
  }
</script>
